package cn.yikaojiuguo.student.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.LinearLayout;

/**
 * Created by cfan_yang on 2015/12/10.
 * 拦截触摸事件
 */
public class UnTouchableLinearLayout extends LinearLayout{

    public UnTouchableLinearLayout(Context context) {
        super(context);
    }

    public UnTouchableLinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public UnTouchableLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return true;
    }
}
